Description:
When an object is compared to a constant, it can be placed either on the left or
on the right side of the comparison operator (
==, !=,
<, >, <=, or
>=).
PCSS helps to follow the same style in these cases. The Side option
allows you to select whether the constants should be placed on the right or on the left
side of the comparison operator.
Incorrect:
if (v <= MaxValue && MinValue <= v) {
...
}
Correct:
If Side option is right:
if (v <= MaxValue && v >= MinValue) {
...
}